package cool.mtc.minghe.service.manager.sys.dict;

import cool.mtc.minghe.data.model.base.Dict;
import cool.mtc.minghe.service.manager.BaseManager;

import java.util.List;
import java.util.Map;

/**
 * @author 明河
 */
public interface DictManager extends BaseManager {

    Map<String, String> mapDict();

    List<Dict> listDictByDictTypeCode(String dictTypeCode);

    void clearDictCacheByDictTypeCode(String dictTypeCode);

    List<Dict> listDictByDictTypeId(long dictTypeId);

    void clearDictCacheByDictTypeId(long dictTypeId);
}
